package org.jadapter.examples.foobar;

import org.jadapter.registry.AdapterRegistry;

public class UsesRegistry {

    AdapterRegistry registry;

    public UsesRegistry(AdapterRegistry registry) {
        this.registry = registry;
    }

    public void doStuffUsingTransformer(FooBean foo) {
        Bar bar = registry.transform(foo, Bar.class);
        // do stuff with bar
    }

}
